import { getUserInfo } from "@/apis/noteList";
import { defineStore } from "pinia";
import { ref } from "vue";
export const useUserStore = defineStore('vue-user', () => {
  const userInfo = ref({})
  const getUser = async () => {
    const res = await getUserInfo()
    userInfo.value = res.data
    // console.log(res);
  }
  return {
    userInfo,
    getUser
  }
},
  {
    persist: true
  }
)
